package com.lky.marshallmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lky.common.utils.PageUtils;
import com.lky.marshallmall.member.entity.MemberEntity;
import com.lky.marshallmall.member.exception.PhoneExistsException;
import com.lky.marshallmall.member.exception.UsernameExistsException;
import com.lky.marshallmall.member.vo.MemberLoginVo;
import com.lky.marshallmall.member.vo.MemberRegistVo;
import com.lky.marshallmall.member.vo.TokenVo;
import com.lky.marshallmall.member.vo.WeiboTokenVo;

import java.util.Map;

/**
 * 会员
 *
 * @author Marshall
 * @email 1347438049@qq.com
 * @date 2020-12-01 23:12:41
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhone(String email) throws PhoneExistsException;
    void checkUserName(String userName) throws UsernameExistsException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(TokenVo vo);

    MemberEntity login(WeiboTokenVo weiboTokenVo);
}

